var app = angular.module('app', []);
app.controller('WriterController',function($scope,$timeout){
	$scope.indexUrl="writetext.html";
	$scope.clickUrl=function(name){
  		if(name=="writetext"){
    	    $scope.indexUrl="writetext.html";
    	    window.location.reload();
  		}else{
  			window.location.href="xueyashuju.html"
  		}
	}
	$scope.refreshScroll=function(){
    	$timeout(function(){
			$scope.$apply();
		},100);
	}
});
layui.use('element', function(){
  var element = layui.element;
});